package com.ksyun.campus.metaserver.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;

/**
 * Allocate blocks request
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AllocateBlocksRequest {
    
    @NotBlank(message = "File ID cannot be blank")
    private String fileId;
    
    @Min(value = 1, message = "Bytes must be positive")
    private long bytes;
}
